package com.lsf.po;

import java.sql.Timestamp;

/**
 * PubMessage entity. @author MyEclipse Persistence Tools
 */

public class PubMessage implements java.io.Serializable {

	// Fields

	private Integer messageId;
	private User user;
	private Integer readTag;
	private String text;
	private Timestamp date;

	// Constructors

	/** default constructor */
	public PubMessage() {
	}

	/** minimal constructor */
	public PubMessage(User user, Timestamp date) {
		this.user = user;
		this.date = date;
	}

	/** full constructor */
	public PubMessage(User user, Integer readTag, String text, Timestamp date) {
		this.user = user;
		this.readTag = readTag;
		this.text = text;
		this.date = date;
	}

	// Property accessors

	public Integer getMessageId() {
		return this.messageId;
	}

	public void setMessageId(Integer messageId) {
		this.messageId = messageId;
	}

	public User getUser() {
		return this.user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Integer getReadTag() {
		return this.readTag;
	}

	public void setReadTag(Integer readTag) {
		this.readTag = readTag;
	}

	public String getText() {
		return this.text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public Timestamp getDate() {
		return this.date;
	}

	public void setDate(Timestamp date) {
		this.date = date;
	}

}